package server;

import interfaces.Customer;

import java.rmi.RemoteException;
import javax.rmi.PortableRemoteObject;

public class CustomerImpl extends PortableRemoteObject implements Customer {
	private int id = 0;
	private String name = null;

	/**
	 * Constructor
	 * 
	 * @param Name	Customer name
	 * @throws RemoteException
	 */
	public CustomerImpl( int newId, String Name ) throws RemoteException {
		super();
		
		id = newId;
		name = Name;
	}
	
	public int getId() {
		return id;
	}

	/**
	 * Returns the Customer name
	 * 
	 * @return
	 * @throws RemoteException
	 */
	public String getName() {
		return name;
	}
}
